package com.liuchuanzheng.lcz_compose_news.ext

/**
 * @author 刘传政
 * @date 2021/8/2 11:15
 * QQ:1052374416
 * 电话:18501231486
 * 作用:
 * 注意事项:
 */
sealed class State {
    object Loading:State()
    object Success:State()
    class Error(val errorMsg:String?):State()
    fun isLoading() = this is Loading
    fun isError() = this is Error
}